//导入axios
import request from "../utils/request";

//封装注册接口  //user就是注册页面发来的参数
export function register(user) {
    return request.post("/user/register", user)
}

//封装登录接口
export function login(user) {
    return request.post("/user/login", user)
}

//获取用户信息接口
export function getuser() {
    return request.get("/user/currentUser")
}